﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace CrossHair
{
    public class Player
    {
        public Rectangle Bounds;
        private Texture2D texture;
        private CrossHair crossHair;

        /// <summary>
        /// Person represents the class that will contain the player functionality.
        /// </summary>
        /// <param name="texture"></param>
        public Player(Texture2D crosshairTexture, Texture2D texture)
        {
            this.texture = texture;
            this.Bounds = new Rectangle(350,300,24,48);
            crossHair = new CrossHair(crosshairTexture, this);
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(this.texture, this.Bounds, Color.White);
            crossHair.Draw(spriteBatch);
        }

        public void Update()
        {
            crossHair.Update();
        }
    }
}
